const newMixin = {
	methods: {
        /**
         * 报名
         * @param {Object} params
         * @param {Object} callback
         */
        baoming(params, callback) {
            this.$http
                .post("/jeecg-zjcs/baoming/zjcsBaomingCon/add",
                    params
                )
                .then(res => {
                    callback(res.data)
                })
                .catch(err => {
                    console.error(err)
                    this.$tip.success("获取中介机构-失败")
                })
        },
        /**
         * 报名表
         * @param {Object} params
         * @param {Object} callback
         */
        getBaomingList(params, callback) {
            this.$http
                .get("/jeecg-zjcs/baoming/zjcsBaomingCon/list", {
                    params
                })
                .then(res => {
                    callback(res.data.result)
                })
                .catch(err => {
                    console.error(err)
                    this.$tip.success("获取中介机构-失败")
                })
        },
        /**
         * 报价
         * @param {Object} params
         * @param {Object} callback
         */
        editBaoming(params, callback) {
            this.$http
                .put("/jeecg-zjcs/baoming/zjcsBaomingCon/edit", params)
                .then(res => {
                    callback(res.data)
                })
                .catch(err => {
                    console.error(err)
                    this.$tip.success("获取中介机构-失败")
                })
        },
        /**
         * 撤销报价
         * @param {Object} params
         * @param {Object} callback
         */
        revokebaojia(params, callback) {
            this.$http
                .delete("/jeecg-zjcs/baoming/zjcsBaomingCon/revokebaojia", {}, {params})
                .then(res => {
                    callback(res.data)
                })
                .catch(err => {
                    console.error(err)
                    this.$tip.success("获取中介机构-失败")
                })
        },
    }
}
export default newMixin
